<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="MenuTable">

    <div class="layui-card-body padding-left-40">
		
		<table class="layui-table margin-top-10" lay-skin="line">
			<thead>
				<tr>
					<th width="80" class="text-center list-table-check-td think-checkbox">
						<label><input lay-ignore data-auto-none data-check-target='.list-check-box' class="list-check-box" type='checkbox'></label>
					</th>
					<th class="text-center">字段</th>
					<th class="text-center">描述</th>
					<th class="text-center" width="40%">信息</th>
				</tr> 
			</thead>
			<tbody>
				{notempty name='commonFields'}
				{foreach $commonFields as $vo}
				<tr>
					<td align="center"><input class="list-check-box" type='checkbox' name="fields[]" value='{$vo.name}'></td>
					<td align="center">{$vo.name|default=""}</td>
					<td align="center">{$vo.comment|default=""}</td>
					<td align="center">类型 {$vo.type|default=""} - 长度 {$vo.length|default=""} - 默认 {$vo.default|default=""} - 为空 {$vo.is_null|default=""}</td>
				</tr>
				{/foreach}
				{/notempty}
			</tbody>
		</table>
		
    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='table_name'}<input type='hidden' value='{$table_name}' name='table_name'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>{:lang('保存数据')}</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="{:lang('确定要取消吗？')}" data-close>{:lang('取消')}</button>
    </div>
</form>